<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>添加</title> 
@include("/common/cssAndJs.html"){}
</head>
<body>
	<div class="x-body layui-anim layui-anim-up">
		<div class="layui-container">
			<div class="layui-row">
				<div class="layui-col-md2"></div>
				<div class="layui-col-md8">
					<form action="${ctxPath}/systemUser/systemUserUpdate"
						class="layui-form updateForm" onsubmit="return false">
<!-- 						<div class="layui-form-item">
							<label class="layui-form-label"> <span class="x-red">*</span>密码
							</label>
							<div class="layui-input-block">
								<input type="text" id="password" name="password"
									value="${model.password}" lay-verify="required|eqVlaue"
						placeholder="请输入密码"					autocomplete="off" class="layui-input">
							</div>
							
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> <span class="x-red">*</span>确认密码
							</label>
							<div class="layui-input-block">
								<input type="text" id="rpassword" name="rpassword"
									value="${model.password}"	lay-verify="required" 
									autocomplete="off" class="layui-input boot-eqVlaue">
							</div>
							
						</div> -->
						<div class="layui-form-item">
							<label class="layui-form-label"> <span class="x-red">*</span>部门: </label>
							<div class="layui-input-block">
								<input type="hidden" id="deptId" name="deptId" value=""> <input
									type="text" id="showNameDom" name="showNameDom" value="${dbUtil.getDeptName(model.deptId)}"
									autocomplete="off" class="layui-input boot-layer"
									boot-url="${ctxPath}/common/showTree?treeUrl=${ctxPath}/systemDept/systemDeptList&treeTitle=fullName&showNameDom=showNameDom&showIdDom=deptId"
									boot-width="300" boot-height="400" boot-title="选择部门"
									end="function(){}" placeholder="请选择部门" >
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"><span class="x-red">*</span> 角色:</label>
							<div class="layui-input-block">
								<select id="roleId" name="roleId"  xm-select="roleId"  xm-select-search value="${model.roleId}"  lay-verify="required"  >
									<option value="">请选择一个角色</option>
										@for(role in roleList){
												<option value="${role.id}">${role.name}</option>
										@}
								</select>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> <span class="x-red">*</span>名字 </label>
							<div class="layui-input-block">
								<input type="text" id="name" name="name"  lay-verify="maxlengths|required"
					placeholder="请输入名字"				value="${model.name}" autocomplete="off" class="layui-input">
							</div>
							
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> 生日 </label>
							<div class="layui-input-block">
								<input type="text" id="birthday" name="birthday"  lay-verify="maxlengths"
						placeholder="请选择生日"			value="${model.birthday}" autocomplete="off"
									class="layui-input">
							</div>
							
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> 性别 </label>
							<div class="layui-input-block">
								 <select name="sex" lay-verify="" lay-search  v="${model.sex}" >
									 <option value="1">男</option>
									 <option value="2">女</option>
								</select>  
							</div>
							
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"> email </label>
							<div class="layui-input-block">
								<input type="text" id="email" name="email" lay-verify="email|maxlengths" maxlengths="45"
						placeholder="请输入email"			value="${model.email}" autocomplete="off" class="layui-input">
							</div>
							
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">电话
							</label>
							<div class="layui-input-block">
								<input type="text" id="phone" name="phone"  lay-verify="phone|maxlengths" maxlengths="45"
						placeholder="请输入电话"			value="${model.phone}" autocomplete="off" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label for="L_repass" class="layui-form-label"> </label>
							<button class="layui-btn" lay-filter="boot-form-btn"
								lay-submit="">更新</button>
						</div>
						<input type="hidden" name="id"   value="${model.id}">
						<input type="hidden" id="account" name="account" value="${model.account}">
						<input type="hidden" id="account" name="password" value="${model.password}">
					</form>
					<div class="layui-col-md2"></div>
				</div>
			</div>
		</div>
	</div>
	<script src="${ctxPath}/static/js/view/system/systemUser/systemUser.js"></script>
</body>
</html>